import Vue from 'vue'
import App from './App.vue'
import router from '@/router'
import store from '@/store'
import TypeNav from '@/components/TypeNav'
import {reqCategoryList}from '@/api'
import '@/mock/mockServe'
reqCategoryList()
Vue.config.productionTip = false
Vue.component(TypeNav.name, TypeNav)
new Vue({
  render: h => h(App),
  // 注册路由
  router,
  // 注册仓库，组件实例身上就多了一个$store属性
  store,
}).$mount('#app')
